package com.ruoyi.qymlxin.esspringboot;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ES存储 Book repository,定义Book与ES索引映射关系
 *
 * @author geng
 * 2020/12/19
 */
@Repository("esBookRepository")
public interface ESBookRepository extends ElasticsearchRepository<ESBook, String> {

    List<ESBook> findByTitleOrTypeOrDesOrPriceOrAdditional(String title, String type,String des,String price,String additional);


}